package com.voodoo.lib_mqtt;

import com.voodoo.lib_utils.DeviceUtils;

/**
 * Author：voodoo
 * CreateTime：2021/07/15 015 下午 05:29
 * Description：Mqtt常量类
 */
public class MqttConstant {

    // 链接信息
    public static final String BASE_URL = "tcp://mqtt-cn-4590yhjpl06.mqtt.aliyuncs.com:1883";
    public static final String CLIENT_ID = "GID_MCH@@@" + DeviceUtils.getDeviceSn();
    public static final String USER_NAME = "LTAImQuW7MJwIh0D";
    public static final String PASS_WORD = "/v9GTxXfC+NnUHeJvjEe4P9cbaI=";
    // public static final String INSTANCE_ID = "mqtt-cn-4590yhjpl06"; // 实例名
    // public static final String ACCESS_KEY = "LTAIXG4D0wcEhwUP"; // 阿里云AK
    // public static final String SECRET_KEY = "G95oPlxwsFbJvnDvMLLHoYtIstyjlg"; // 访问私钥

    // 订阅消息 topic
    private static final String MQTT_BASE = "rkt/mch/";
    private static final String MQTT_BASE_SN = MQTT_BASE + DeviceUtils.getDeviceSn() + "/";
    public static final String SUBSCR_ADVERTISEMENT = MQTT_BASE_SN + "refreshad/"; // 广告下发
    public static final String SUBSCR_LANE_UPDATA = MQTT_BASE_SN + "refreshslot/"; // 货道更新
    public static final String SUBSCR_OUT_GOODS = MQTT_BASE_SN + "outgoods/"; // 远程出货
    public static final String SUBSCR_CMD = MQTT_BASE_SN + "cmd/"; //远程获取日志
    public static final String SUBSCR_TEMPERATURE_CONTROL = MQTT_BASE_SN + "device/"; // 温度控制
    public static final String SUBSCR_OUTADV = MQTT_BASE_SN + "ad/"; // 售货机接收广告推送
    public static final String SUBSCR_LOCK = MQTT_BASE_SN + "lock/"; // 售货机电控锁
    public static final String BINDSUSCCESS = MQTT_BASE + "bindsuccess/";//售货机接收绑定重启软件
    public static final String SERVICE_TEL = MQTT_BASE + "service_tel/";//更新机主电话
    public static final String SLOTSET = MQTT_BASE_SN + "slotset/";// 电机最大转动时间设置
    public static final String SLOTSET_S = MQTT_BASE + "slotset_s/";// 设置完电机时间返回值


    // 其他
    public static final String INTENT_EXTRA_PARAM_KEY = "intentExteraParamKey"; // intent携带的参数key
    public static final String SEND_MESSAGE = "sendMsg"; // 发送Mqtt消息
    public static final String SEND_MSG_TOPIC_KEY = "sendMsgTopic"; // 发送消息头
    public static final String SEND_MSG_MESSAGE_KEY = "sendMsgMessage"; // 发送的消息

}
